package com.xbongbong.pro.statistic.result.pojo;

import com.xbongbong.saas.constant.BasicConstant;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * 字段是否靠右
 * @author zcp
 * @version v1.0
 * @date 2019/3/15 19:18
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class TitleRightPojo implements Serializable {
    private static final long serialVersionUID = 2556086030600505692L;

    /**
     * 标题值
     */
    private String titleValue;

    /**
     * 是否靠右：0，靠左 1，靠右 2，居中
     */
    private Integer numRight;

    /**
     * 合并几列
     */
    private Integer col;
    /**
     * 合并几行
     */
    private Integer row;
    /**
     * 子标题
     */
    private List<TitleRightPojo> children;

    public TitleRightPojo() {
        this.col = BasicConstant.ONE;
        this.row = BasicConstant.ONE;
    }

    public TitleRightPojo(String titleValue, Integer numRight) {
        this.titleValue = titleValue;
        this.numRight = numRight;
        this.col = BasicConstant.ONE;
        this.row = BasicConstant.ONE;
    }
    public TitleRightPojo(Integer col, Integer row, List<TitleRightPojo> children, String titleValue, Integer numRight) {
        this.col = col;
        this.row = row;
        this.children = children;
        this.titleValue = titleValue;
        this.numRight = numRight;
    }
}
